package com.hb.sq3d.vos;

public class Status {
    public int acc = -1;// 自适应巡航控制模式
    public int fcw = -1;// 碰撞报警状态
    public int alc = -1;// 自动换道状态
    public int crossed = -1;// 跨线状态
    public int acas = -1;// Nudge智能避让功能状态信号
    public int noa = -1;// NOA功能状态
    public int zhicheSpeed = 0;// 自车车速(km/h)

    public Status() {}

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        Status other = (Status) obj;
        return acc == other.acc && fcw == other.fcw && alc == other.alc && crossed == other.crossed && acas == other.acas && noa == other.noa;// ignore 'zhicheSpeed'
    }

    @Override
    public String toString() {
        return "Status: acc=" + acc + ", fcw=" + fcw + ", alc=" + alc + ", crossed=" + crossed + ", acas=" + acas + ", noa=" + noa + ", zhicheSpeed=" + zhicheSpeed;
    }
}
